home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13161 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.misc,comp.lang.c
  4. Subject: Re: GOTO controversy
  5. Date: Thu, 04 Apr 96 22:13:55 GMT
  6. Organization: none
  7. Message-ID: <828656035snz@genesis.demon.co.uk>
  8. References: <314FB5F5.259B@simi.is> <3151B47F.70FD@connix.com> <oun34tm3c7.fsf@lynx.cs.byu.edu>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <oun34tm3c7.fsf@lynx.cs.byu.edu> hall@cs.byu.edu "Kelly Hall" writes:
  15.  
  16. >>>>>> "Lawrence" == Lawrence Kirby <fred@genesis.demon.co.uk> writes:
  17. >    Lawrence> An O(log N) stack depth is generally not a problem. I
  18. >    Lawrence> guess you could say that is finite because there are
  19. >    Lawrence> typically practical upper bounds to N.
  20. >
  21. >Tail recursion is implemented by all non-stupid compilers the same way
  22. >as the imperative (goto) version.  Gcc will do this, whether or not
  23. >your favorite compiler will is a different matter.
  24. >
  25. >No stack problems at all.
  26.  
  27. Code that relies on compiler optimisations (which C doesn't guarantee) to
  28. even work at all is at best highly suspect and at worst plain broken. In
  29. some cases it is company policy to compile with optimisations turned off,
  30. this should not cause code to blow up.
  31.  
  32. -- 
  33. -----------------------------------------
  34. Lawrence Kirby | fred@genesis.demon.co.uk
  35. Wilts, England | 70734.126@compuserve.com
  36. -----------------------------------------
  37.